home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / xml4j.jar / com / ibm / xml / parser / InsertableElement.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-08-30  |  1.0 KB  |  32 lines

  1. package com.ibm.xml.parser;
  2.  
  3. public class InsertableElement {
  4.    public String name;
  5.    public boolean status;
  6.    public int index;
  7.  
  8.    public InsertableElement(String var1) {
  9.       this(var1, false);
  10.    }
  11.  
  12.    public InsertableElement(String var1, boolean var2) {
  13.       this.status = false;
  14.       this.index = -1;
  15.       this.name = var1;
  16.       this.status = var2;
  17.       this.index = -1;
  18.    }
  19.  
  20.    public InsertableElement(int var1) {
  21.       this.status = false;
  22.       this.index = -1;
  23.       this.name = " *ERROR* ";
  24.       this.status = true;
  25.       this.index = var1;
  26.    }
  27.  
  28.    public String toString() {
  29.       return " *ERROR* ".equals(this.name) ? "InsertableElement[\"" + this.name + "\", " + this.status + ", " + this.index + "]" : "InsertableElement[\"" + this.name + "\", " + this.status + "]";
  30.    }
  31. }
  32.